package com.foxmail.yusp.mycloud;

/**
 * 帧： 继电器
 */

class RelayFrame {

    Config config;

    public RelayFrame(Config config) {
        this.config = config;
    }

    static class Config {
        R0 r0;

        public Config(R0 r0) {
            this.r0 = r0;
        }
    }

    static class R0 {
        boolean enable;
        String title;
        boolean pulse;
        int on;
        int off;
        Schedule s;

        public R0(boolean enable, String title, boolean pulse, int on, int off, Schedule s) {
            this.enable = enable;
            this.title = title;
            this.pulse = pulse;
            this.on = on;
            this.off = off;
            this.s = s;
        }
    }

    static class Schedule {
        int a0;
        int a1;
        int b0;
        int b1;
        int c0;
        int c1;
        int d0;
        int d1;
        int e0;
        int e1;
        int f0;
        int f1;

        public Schedule(int a0, int a1, int b0, int b1, int c0, int c1, int d0, int d1, int e0, int e1, int f0, int f1) {
            this.a0 = a0;
            this.a1 = a1;
            this.b0 = b0;
            this.b1 = b1;
            this.c0 = c0;
            this.c1 = c1;
            this.d0 = d0;
            this.d1 = d1;
            this.e0 = e0;
            this.e1 = e1;
            this.f0 = f0;
            this.f1 = f1;
        }
    }
    //
}
